<template>
  <div>
    <h2>dialog</h2>
    <el-button type="text" @click="isShow = true">打开嵌套表单的 Dialog</el-button>
    isShow:{{isShow}}
    <el-dialog
      :close-on-click-modal="false"
      :close-on-press-escape="false"
      :show-close="false"
      @close="hClose"
      @open="hOpen"
      title="收货地址" :visible.sync="isShow">
      <div>
        假装这里有表单！默认插槽，自定义内容
      </div>
      <div slot="footer" class="dialog-footer">
        <el-button @click="isShow = false">取 消</el-button>
        <el-button type="primary" @click="isShow = false">确 定</el-button>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      isShow: false
    }
  },
  methods: {
    hClose() {
      console.log('hClose')
    },
    hOpen() {
      console.log('hOpen')
    }
  },
}
</script>